﻿<!DOCTYPE html>
<html>
	<head>
		<script type="text/javascript" src="query.js"></script>
		<meta charset="utf-8">
		<title>体检报告详情</title>
		<style>
			body{
				font-size:32px; color:#323232; border-bottom:1px solid #323232; line-height:60px;
			}
			.bc_result{
				padding: 10px;
				margin: 20px 78px;
				font-size: 35px;
			}
			.xd_result{
			 
				padding: 10px;
				margin: 20px 78px;
				font-size: 35px;
			}
			.item-list{
				padding: 16px 15px;
				margin: 20px 42px;
				font-size: 35px;
			}
			.item{
				border-bottom: 4px dotted #a29494;
			}
			.item-name{
				font-size: 46px;
				font-weight: 600;
			}
			.item-result{
				display: inline-block;
				float: left;
				margin: 10px;
				 
			}
			.item-value{
				display: inline-block;
				margin: 10px;
			}
			.item-health-gui{
				text-indent: 70px;
				padding-bottom: 50px;
				margin-top: 14px;
			}
			.fengmiantitle{
				width:25%; height:100px; float:Left; font-size:34px; color:#646464; line-height:130px;
			}
			.fengmian{
				width:70%; height:100px; float:left; font-size:32px; color:#646464; line-height:120px; border-bottom:1px solid #646464; text-align:center;
			}
			.xmmctitle{
				width:10%;
				 height:60px;
				  font-size:32px; 
				  color:#323232; 
				  border-bottom:1px solid #323232; 
				  line-height:60px; 
				  float:left; 
				  text-align:center;
			}
			.xmresult{
				height:80px; 
				float:left; 
				font-size:32px; 
				color:#323232; 
				line-height:80px; 
				text-align:center; 
				text-overflow:ellipsis;
				white-space:nowrap;
				overflow:hidden;
			}
			.checkpersoncss{
				width:35%; height:70px; font-size:32px; color:#323232; border-top:1px dashed #323232; line-height:70px; float:left; text-align:left; margin-top:30px; padding-left:2%;
			}
		</style>
	</head>
	<body>
		<div style="width:100%; height:100vh; background: white;">
			<img src="images/tijianicon.png" style="width:22%; height:auto; float:left; margin-left:5%; margin-top:30px;"></img>
			<div style="max-width:66%;width:auto; line-height:70px; height:100px; margin-top:40px; font-size:50px; color:#323232; float:left; margin-left: 2%;"></div>
			<div style="clear:both;"></div>
			
			<div style="width:100%; line-height:50px; height:50px; text-align:center; font-size:42px; color:#323232; margin:0 auto; margin-top:10px;">体检中心报告</div>
			<div id='userPhoto' style="width:20%; margin-top:12px; margin-left: 40%;"></div>
			<div style="width:92%; height:auto; min-height: 100px; margin:0 auto;">
				<div class="fengmiantitle">体检编号:</div>
				<div id='bianhao' class="fengmian"></div>
				<div style="clear:both;"></div>
				<div class="fengmiantitle">体检日期:</div>
				<div id='tjrq' class="fengmian"></div>
				<div style="clear:both;"></div>
				<div class="fengmiantitle">姓名:</div>
				<div class="username fengmian"></div>
				<div style="clear:both;"></div>
				<div class="fengmiantitle">联系电话:</div>
				<div id='phone' class="fengmian"></div>
				<div style="clear:both;"></div>
				<div class="fengmiantitle">身份证号:</div>
				<div id='idcard' class="fengmian"></div>
				<div style="clear:both;"></div>
				<div class="fengmiantitle">户籍地址:</div>
				<div id='address' class="fengmian"></div>
				<div style="clear:both;"></div>

			</div>

			<div style="width:92%; height:auto; margin:0 auto; border-top:1px solid #dedede; margin-top: 80px;">
				<div style="width:100%; height:100px; line-height:100px; font-size:38px; color:#323232; text-align:center; border-bottom:4px solid #323232;">第一部分
					检验（测）报告单</div>
				<div style="width:100%; height:100px; border-bottom:1px dashed #323232; font-size:34px; text-align:center; margin-top:65px; color:#323232; line-height:100px;">
					一般状况检测报告单</div>

				<div style="clear:both; height:50px;"></div>
				<div style="width:100%; height:1px; background:#323232;"></div>
				<div class="xmmctitle" style="width:10%;">序号</div>
				<div class="xmmctitle" style="width:25%;">项目名称</div>
				<div class="xmmctitle" style="width:25%;">结果</div>
				<div class="xmmctitle" style="width:15%;">单位</div>
				<div class="xmmctitle" style="width:25%;">参考范围</div>
				<div style="clear:both;"></div>
				<div id="ybjcHtml"></div>
				
				<div style="clear:both;"></div>
				<div style="width:100%; height:100px; border-bottom:1px dashed #323232; font-size:34px; text-align:center; margin-top:50px; color:#323232; line-height:100px;">卫生院血常规检验报告单</div>
				<div style="clear:both; height:80px;"></div>
				<div style="width:100%; height:1px; background:#323232;"></div>
				<div class="xmmctitle" style="width:35%; ">项目名称</div>
				<div class="xmmctitle" style="width:25%; ">结果</div>
				<div class="xmmctitle" style="width:15%; ">单位</div>
				<div class="xmmctitle" style="width:25%; ">参考范围</div>
				<div style="clear:both;"></div>
				<div id="xcgHtml"></div>
				<!-- <div  class="checkpersoncss">
					检验者:<img id='checkperson' style='width:90%; margin-top:12px; margin-left:5%;'>
				</div>	 -->			
				<div class='checktime'></div>
				<div style="clear:both; height:20px; border-top:3px solid #323232;"></div>
				
				<!--尿常规-->
				<div style="width:100%; height:100px; border-bottom:1px dashed #323232; font-size:34px; text-align:center; margin-top:50px; color:#323232; line-height:100px;">卫生院尿常规检验报告单</div>
				<div style="clear:both; height:50px;"></div>
				<div style="width:100%; height:1px; background:#323232;"></div>
				<div class="xmmctitle" style="width:35%; ">项目名称</div>				
				<div class="xmmctitle" style="width:25%;">结果</div>	
				<div class="xmmctitle" style="width:15%;">单位</div>	
				<div class="xmmctitle" style="width:25%; ">参考范围</div>	
				<div style="clear:both;"></div>
				<div id="ncgHtml"></div>
				<!-- <div  class="checkpersoncss">
					检验者<img id='checkperson2' style='width:90%; margin-top:12px; margin-left:5%;'>
				</div>	 -->		
				<div class='checktime'></div>
				<div style="clear:both; height:80px; border-top:3px solid #323232;"></div>
				
				<div style="width:100%; height:100px; border-bottom:1px dashed #323232; font-size:34px; text-align:center; margin-top:50px; color:#323232; line-height:100px;">卫生院生化检验报告单</div>
				
				<div style="clear:both; height:50px;"></div>
				<div style="width:100%; height:1px; background:#323232;"></div>	
				<div class="xmmctitle" style="width:35%; ">项目名称</div>	
				<div class="xmmctitle" style="width:25%; ">结果</div>	
				<div class="xmmctitle" style="width:15%;">提示</div>	
				<div class="xmmctitle" style="width:25%;">参考范围</div>	
				<div style="clear:both;"></div>
				<div id="shHtml"></div>
				<!-- <div  class="checkpersoncss">
					检验者<img id='checkperson3' style='width:90%; margin-top:12px; margin-left:5%;'>
				</div>	 -->
				<div class='checktime'></div>
				
				<div style="clear:both; height:80px; border-top:3px solid #323232;"></div>
				
				<div style="width:100%; height:100px; border-bottom:1px dashed #323232; font-size:34px; text-align:center; margin-top:50px; color:#323232; line-height:100px;">
					卫生院眼压报告单</div>
				
				<div style="clear:both; height:50px;"></div>
				<div style="width:100%; height:1px; background:#323232;"></div>	
				<div class="xmmctitle" style="width:35%; ">项目名称</div>	
				<div class="xmmctitle" style="width:25%; ">结果</div>	
				<div class="xmmctitle" style="width:15%;">提示</div>	
				<div class="xmmctitle" style="width:25%;">参考范围</div>	
				<div style="clear:both;"></div>
				<div id="yanyaHtml"></div>
				<!-- <div  class="checkpersoncss">
					检验者<img id='checkperson3' style='width:90%; margin-top:12px; margin-left:5%;'>
				</div>	 -->
				<div class='checktime'></div>
				
				
				<div style="clear:both; height:80px; border-top:3px solid #323232;"></div>
								<div style="width:100%; height:100px; font-size:34px; text-align:center; margin-top:50px; color:#323232; line-height:100px;">
									裂隙灯报告单</div>
				
								<div style="clear:both; height:50px;"></div>
								<div style="width:100%; height:1px; background:#323232;"></div>
				<div style="display: block; width:35%; height:60px; font-size:32px; color:#323232; border-bottom:1px solid #323232; line-height:60px; float:left; text-align:center;">姓名:
							<span class="username"></span></div>
			
						<div style="display: block; width:25%; height:60px; font-size:32px; color:#323232; border-bottom:1px solid #323232; line-height:60px; float:left; text-align:center;">性别:
							<span class="usersex"></span></div>
			
						<div style="display: block; width:40%; height:60px; font-size:32px; color:#323232; border-bottom:1px solid #323232; line-height:60px; float:right; text-align:center;">年龄:
							<span class="userage"></span></div>
							<div style="clear:both;"></div>
							<div style="">
								<div  style="width:43%; margin-top:12px; margin-left:5%;display: inline-block;">
									<img id='LXDLeft' style="width: 100%;"/>
								</div>
								<div  style="width:43%; margin-top:12px; margin-left:5%;display: inline-block;">
									<!-- <img id='BCPic2' src="http://127.0.0.1:808/gwImg/202404/112f3f58eb1044ef8cba77052930bcad@图片4805.jpg"/>		 -->
									<img id='LXDRight' style="width: 100%;"/>	
								</div>
							</div>
							<!-- <div style="margin-left:4%;">诊断:</div> -->
							<div id="liexidengzhenduan" style="font-size: 28px;margin-left:8%;"></div>
							
							
				
				<div style="clear:both; height:80px; border-top:3px solid #323232;"></div>
				<div style="width:100%; height:100px; font-size:34px; text-align:center; margin-top:50px; color:#323232; line-height:100px;">卫生院超声检测报告单</div>

				<div style="clear:both; height:50px;"></div>
				<div style="width:100%; height:1px; background:#323232;"></div>
<div style="display: block; width:35%; height:60px; font-size:32px; color:#323232; border-bottom:1px solid #323232; line-height:60px; float:left; text-align:center;">姓名:
				<span class="username"></span></div>

			<div style="display: block; width:25%; height:60px; font-size:32px; color:#323232; border-bottom:1px solid #323232; line-height:60px; float:left; text-align:center;">性别:
				<span class="usersex"></span></div>

			<div style="display: block; width:40%; height:60px; font-size:32px; color:#323232; border-bottom:1px solid #323232; line-height:60px; float:right; text-align:center;">年龄:
				<span class="userage"></span></div>


			<div style="clear:both;"></div>
			<div style="">
				<div  style="width:43%; margin-top:12px; margin-left:5%;display: inline-block;">
					<!-- <img id='BCPic1' src="http://127.0.0.1:808/gwImg/202404/112f3f58eb1044ef8cba77052930bcad@图片4805.jpg"/> -->
					<img id='BCPic1' style="width: 100%;"/>
				</div>
				<div  style="width:43%; margin-top:12px; margin-left:5%;display: inline-block;">
					<!-- <img id='BCPic2' src="http://127.0.0.1:808/gwImg/202404/112f3f58eb1044ef8cba77052930bcad@图片4805.jpg"/>		 -->
					<img id='BCPic2' style="width: 100%;"/>	
				</div>
			</div>
			<div style="margin-left:4%;">超声所见:</div>
			<div id="chaoshengsj" style="font-size: 28px;margin-left:8%;"></div>
			<div style="margin-left:4%;">超声结论:</div>
			<div id="chaoshengjl" style="font-size: 28px;margin-left:8%;"></div>

			<!-- <div  class="checkpersoncss">
				检验者<img id='checkperson4' style='width:90%; margin-top:12px; margin-left:5%;'>
			</div>	 -->


			<div class='checktime'></div>

			<div style="clear:both; height:80px; border-top:4px solid #323232;"></div>
			<div style="width:100%; height:100px; font-size:34px; text-align:center; margin-top:50px; color:#323232; line-height:100px;">卫生院心电图报告单</div>
			<div style="clear:both;"></div>
			<div  style="width:96%; margin-top:12px;">
				<!--<img id='xdPic' src="http://127.0.0.1:808/gwImg/xdt/202404/20240414030003.jpg" style='width:98%; margin-top:12px; margin-left:5%;'/>-->
				<img id='xdPic'  style='width:98%; margin-top:12px; margin-left:5%;'/>
			</div>

			<!-- <div  class="checkpersoncss">
				检验者<img id='checkperson5' style='width:90%; margin-top:12px; margin-left:5%;'>
			</div>	 -->
			
			<div class='checktime'></div>
			<div style="clear:both; height:20px; border-top:3px solid #323232;"></div>
			
			<div style="clear:both; height: 300px;"></div>
		</div>
		<script type="text/javascript" src="main.js"></script>
		<script type="text/javascript">
			window.onload = function() {
				// 这样调用：
				// var mIdCard = GetCookie("idcard");

				// if ("" == mIdCard || null == mIdCard || undefined == mIdCard) {
				// 	window.location.href = "login.html?resetlogin=1"
				// }
				var barcode = getQueryString("barcode");
				var comboId = getQueryString("comboId");
				var sex = getQueryString("sex");
				var orgncode = getQueryString("orgncode");
				//alert(time);
				$.ajax({
					type: "post",
					url: interfaceUrl+"tj/dataApi/queryHealthByBarcode",
					data: JSON.stringify({
						"barcode": barcode,
						"comboId": comboId,
						"sex":sex,
						"orgncode":orgncode
					}),
					dataType: "json",
					contentType: "application/json; charset=utf-8", //(可以)
					success: function(res) {
						if(0==res.code){
							var physical = res.physical;
							var comResultList =res.comResultList;
							var yibanjiancha;
							var niaochanggui;
							var shenghua;
							var xuehanggui;
							var xindiantu;
							var chaosheng;
							var yanya;
							var userPhoto = "<img id='userPhoto' src='" + physical.photograph +
								"' style='width:90%; margin-top:12px; margin-left:5%;'></img>";
							$('#userPhoto').html(userPhoto);							
							$('#bianhao').html(physical.barcode);
							$('#tjrq').html(formatTime(physical.createTime));
							$('.username').html(physical.name);
							$('.usersex').html(physical.gender);
							$('.userage').html(physical.age);
							if(null!=physical.phone&&physical.phone.length>0){
								$('#phone').html(physical.phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'));
							}
							$('#idcard').html(formatidcard(physical.idCard));
							$('#address').html(physical.address);							
							if(null!=comResultList&&comResultList.length>0){
								for(var i=0;i<comResultList.length;i++){
									console.log(comResultList[i].comName);
									if("一般检查"==comResultList[i].comName){
										yibanjiancha = comResultList[i].resultList;
										var ybjcHtml="";
										if(null!=yibanjiancha&&yibanjiancha.length>0){											
											for(var a = 0;a<yibanjiancha.length;a++){			
												if(null==yibanjiancha[a].result){
													continue;
												}
												ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:35%; '>"+yibanjiancha[a].itemName+"</div>"
																		+ "<div class='xmresult' style='width:25%;' >"+yibanjiancha[a].result+"</div>";
												if(null!=yibanjiancha[a].measuring&&""!=yibanjiancha[a].measuring&&yibanjiancha[a].measuring.length>0){
													ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:15%;'>"+yibanjiancha[a].measuring+"</div>";
												}else{
													ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:15%;'>    </div>";
												}
												ybjcHtml = ybjcHtml +  "<div class='xmresult' style='width:25%;'>"+yibanjiancha[a].minmun+"~"+yibanjiancha[a].maximum+"</div>";
							
											}
											$("#ybjcHtml").html(ybjcHtml);
										}
										continue;
									}
									if("尿常规"==comResultList[i].comName){
										niaochanggui = comResultList[i].resultList;
										var ybjcHtml="";
										// console.log("尿常规"+niaochanggui.length);
										if(null!=niaochanggui&&niaochanggui.length>0){											
											for(var a = 0;a<niaochanggui.length;a++){	
												if(null==niaochanggui[a].result){
													continue;
												}
												ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:35%; '>"+niaochanggui[a].itemName+"</div>"
																		+ "<div class='xmresult' style='width:25%;' >"+niaochanggui[a].result+"</div>";
												if(null!=niaochanggui[a].measuring&&""!=niaochanggui[a].measuring&&niaochanggui[a].measuring.length>0){
													ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:15%;'>"+niaochanggui[a].measuring+"</div>";
												}else{
													ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:15%;'>    </div>";
												}
												ybjcHtml = ybjcHtml +  "<div class='xmresult' style='width:25%;'>"+niaochanggui[a].minmun+"~"+niaochanggui[a].maximum+"</div>";
																	
											}
											// console.log("尿常规"+ybjcHtml);
											$("#ncgHtml").html(ybjcHtml);
										}
										continue;
									}
									if("生化"==comResultList[i].comName){
										shenghua = comResultList[i].resultList;
										var ybjcHtml="";
										if(null!=shenghua&&shenghua.length>0){											
											for(var a = 0;a<shenghua.length;a++){	
												if(null==shenghua[a].result){
													continue;
												}
												ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:35%; '>"+shenghua[a].itemName+"</div>"
																		+ "<div class='xmresult' style='width:25%;' >"+shenghua[a].result+"</div>";
												if(null!=shenghua[a].measuring&&""!=shenghua[a].measuring&&shenghua[a].measuring.length>0){
													ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:15%;'>"+shenghua[a].measuring+"</div>";
												}else{
													ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:15%;'>    </div>";
												}
												ybjcHtml = ybjcHtml +  "<div class='xmresult' style='width:25%;'>"+shenghua[a].minmun+"~"+shenghua[a].maximum+"</div>";
																	
											}
											$("#shHtml").html(ybjcHtml);
										}
										continue;
									}
									if("血常规"==comResultList[i].comName){
										xuehanggui = comResultList[i].resultList;
										var ybjcHtml="";
										if(null!=xuehanggui&&xuehanggui.length>0){											
											for(var a = 0;a<xuehanggui.length;a++){	
												if(null==xuehanggui[a].result){
													continue;
												}
												ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:35%; '>"+xuehanggui[a].itemName+"</div>"
																		+ "<div class='xmresult' style='width:25%;' >"+xuehanggui[a].result+"</div>";
												if(null!=xuehanggui[a].measuring&&""!=xuehanggui[a].measuring&&xuehanggui[a].measuring.length>0){
													ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:15%;'>"+xuehanggui[a].measuring+"</div>";
												}else{
													ybjcHtml = ybjcHtml + "<div class='xmresult' style='width:15%;'>    </div>";
												}
												ybjcHtml = ybjcHtml +  "<div class='xmresult' style='width:25%;'>"+xuehanggui[a].minmun+"~"+xuehanggui[a].maximum+"</div>";
																	
											}
											$("#xcgHtml").html(ybjcHtml);
										}
										continue;
									}
									if("心电图"==comResultList[i].comName){
										xindiantu = comResultList[i].resultList;
										if(null!=xindiantu&&xindiantu.length>0){
											$("#xdPic").attr("src",xindiantu[0].picUrl);
										}
										continue;
									}
									if("超声"==comResultList[i].comName){
										chaosheng = comResultList[i].resultList;
										if(null!=chaosheng&&chaosheng.length>0){
											if(null!=chaosheng[0].picUrl){
												var picUrls =chaosheng[0].picUrl.split(";");
												$("#BCPic1").attr("src",picUrls[0]);
												$("#BCPic2").attr("src",picUrls[1]);
												$("#chaoshengsj").html(chaosheng[0].result);
												$("#chaoshengjl").html(chaosheng[0].jianyi);
											}
											
										}
										continue;
									}
									if("眼压"==comResultList[i].comName){
										yanya = comResultList[i].resultList;
										var yanyaHtml="";
										if(null!=yanya&&yanya.length>0){		
											for(var a = 0;a<yanya.length;a++){
												if(null==yanya[a].result){
													continue;
												}
												yanyaHtml = yanyaHtml + "<div class='xmresult' style='width:35%; '>"+yanya[a].itemName+"</div>"
																		+ "<div class='xmresult' style='width:25%;' >"+yanya[a].result+"</div>"
																		+ "<div class='xmresult' style='width:15%;'>"+yanya[a].measuring+"</div>"
																		+ "<div class='xmresult' style='width:25%;'>"+yanya[a].minmun+"~"+yanya[a].maximum+"</div>";
												
											}
											$("#yanyaHtml").html(yanyaHtml);
										}
										continue;
									}
									if("裂隙灯"==comResultList[i].comName){
										var liexideng = comResultList[i].resultList;
										if(null!=liexideng&&liexideng.length>0){
											if(liexideng[0].picUrl != null){
												$("#LXDLeft").attr("src",liexideng[0].picUrl);
											}
											if(liexideng[0].bcqt != null){
												$("#LXDRight").attr("src",liexideng[0].bcqt);
											}
											if(liexideng[0].result != null){
												$("#liexidengzhenduan").html(liexideng[0].result);
											}
										}
										continue;
									}
								}
								
							}
							
							
							// $("#checkperson").attr("src",physical.xcgDoctor);
							// var checktime ="<div id='checktime' style='width:61%; height:60px; font-size:32px; color:#323232; border-top:1px dashed #323232; line-height:60px; float:right; text-align:right; margin-top:30px; padding-right:2%;'>检查日期: " +
							// 								physical.createTime + "</div>";
							// $(".checktime").html(checktime);							
							
							// // $("#checkperson3").attr("src",physical.shDoctor);
							
							// $("#checkperson4").attr("src",physical.csDoctor);
							
							// $("#checkperson5").attr("src",physical.xdDoctor);
						}

					},
					error: function(XMLHttpRequest, textStatus, errorThrown) {
						console.log(XMLHttpRequest.responseText);
						console.log(XMLHttpRequest.status);
						console.log(errorThrown);
					}
				});
			}
			function showSecondPart(json){
				var list = JSON.parse(json);
				var html= '';
				for(var i=0;i<list.length;i++){
					var obj = list[i];
					
					var ItemName = obj.ItemName;
					if(!ItemName){
						ItemName = "";
					}
					var Result = obj.Result;
					if(!Result){
						Result = "";
					}
					var Value = obj.Value;
					if(!Value){
						Value = "";
					}
					var Content = obj.Content;
					if(!Content){
						Content = "";
					}
					
					html = html+'<div class="item">'+
									'<div class="item-name">'+ItemName+'</div>'+
									'<div>'+
										'<div class="item-result">'+Result+'</div>'+
										'<div class="item-value">'+Value+'</div>'+
									'</div>'+
									'<div class="item-health-gui">'+Content+'</div>'+
								'</div>';
					
				}
				document.getElementById("item-list").innerHTML=html;
			}
			function formatidcard(idcard) {
				// 15位身份证举例：130503 670401 001的含义; 13为河北，05为邢台，03为桥西区，出 生日期为1967年4月1日，顺序号为001。
				if (idcard.length == 15) {
					return idcard.replace(/(\d{6})\d{6}(\d{3})/, "$1******$2");
				} else {
					return idcard.replace(/(\d{5})\d{6}(\d{6})/, "$1******$2");
				}
			}

			function getQueryString(name) {
				var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
				var r = window.location.search.substr(1).match(reg);
				if (r != null) {
					return unescape(r[2]);
				}
				return null;
			}

			function GetCookie(name) {
				var nameValue = "";
				var key = "";
				var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
				if (arr = document.cookie.match(reg)) {
					nameValue = decodeURI(arr[2]);
				}
				if (key != null && key != "") {
					reg = new RegExp("(^| |&)" + key + "=([^(;|&|=)]*)(&|$)");
					if (arr = nameValue.match(reg)) {
						return decodeURI(arr[2]);
					} else return "";
				} else {
					return nameValue;
				}
			}
			
			function checkperson(name){
				if(null!=name&&''!=name){
					if(name.length>5){
						// 显示照片
						return '<img src'+name+'>';
					}else{
						return "<div id='checkperson' style='width:35%; height:70px; font-size:32px; color:#323232; border-top:1px dashed #323232; line-height:70px; float:left; text-align:left; margin-top:30px; padding-left:2%;'>检测者: " +
									name + "</div>";
					}
				}else{
					return "<div id='checkperson' style='width:35%; height:70px; font-size:32px; color:#323232; border-top:1px dashed #323232; line-height:70px; float:left; text-align:left; margin-top:30px; padding-left:2%;'>检测者: " +
										name + "</div>";
				}	
				
			}
		</script>
	</body>
</html>
